package com.mytijian.task.repository;

import com.mytijian.task.model.TaskValue;
import com.mytijian.task.model.TaskIdentify;

import java.util.Map;

public  interface RuningTaskRepository {

    Map<TaskIdentify, TaskValue> getByIp(String ip);

    Map<TaskIdentify, TaskValue> getByIpAndTaskId(String ip, Integer taskId);

    TaskValue getByIdentify(String ip, TaskIdentify taskIdentify);
    void transfer(Map<TaskIdentify, TaskValue> map, String sourceIp, String destIp);

    void save(TaskIdentify taskIdentify, TaskValue taskValue, String ip);

}
